package com.justgame.project.service.api.entity;


import com.justgame.project.cloud.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;


@Data
@EqualsAndHashCode(callSuper = true)
public class ArtPageInfo extends BaseEntity {

    @NotBlank
    @Length(max = 100)
    private String pageTitle;

    @NotBlank
    @Length(max = 10000)
    private String pageContent;

    private String pageCategory;

    private Long watchCount;
    private Long shareCount;
    private Long likeCount;

    private Integer isHidden;

    @URL
    @Length(max = 255)
    private String photoUrl;
}
